{include file="public/header" select="0" /}
<body class="bgc hide-top">
<div class="pro-list-search" style="font-size: 0.9375rem;font-weight: 700;">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i>
    {$title??'商品列表'}
</div>
<ul class="index-list tpl_list"></ul>
{include file="public/footer" select="0" /}
<script id="template" type="text/html">
    {{# for(var i=0;i<d.data.length ;i++){ }}
    <li>
        <a href="{:url('product/details')}?id={{d.data[i].id}}">
            <p class="flex-center">
                <img src="{{d.data[i].icon}}" alt="">
            </p>
            <div>
                <p class="multi">{{d.data[i].title}}</p>
                <p class="price">￥<span>{{d.data[i].price}}</span></p>
                <p class="flex-layout"><span>￥{{d.data[i].market_price}}</span>销量{{d.data[i].sales}}</p>
            </div>
        </a>
    </li>
    {{# } }}
</script>
<script>
    $(function () {
        var end = '{$keyword}' ? '没有找到相关商品' : '没有更多了';
        getFlow(1, "{:url('product/getList')}?cate_1={$cate_1}&keyword={$keyword}", 'template', end);
    })
</script>
</body>
</html>